package com.tbit.main.service.impl;

import com.tbit.main.constant.DaoParamConstant;
import com.tbit.main.dao.core.HotIntelligentSiteDao;
import com.tbit.main.pojo.HotIntelligentSite;
import com.tbit.main.service.HotIntelligentSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author LMY
 * @create 2021-08-31 14:42
 * 热门站点
 */
@Service("hotIntelligentSiteService")
public class HotIntelligentSiteServiceImpl implements HotIntelligentSiteService {

    @Autowired
    private HotIntelligentSiteDao hotIntelligentSiteDao;

    @Override
    public List<HotIntelligentSite> getByAccountId(Integer accountId, Integer type) {
        Map<String, Object> map = new HashMap<>();
        map.put(DaoParamConstant.accountId, accountId);
        map.put("type", type);
        return hotIntelligentSiteDao.getByAccountId(map);
    }
}
